import type { Plugin, App } from "vue";
import ConfirmModal from "./ConfirmModal.vue";
import DetailModal from "./DetailModal.vue";
export * from "./types";

const components = {
  ConfirmModal,
  DetailModal,
};

export { ConfirmModal, DetailModal };

export const modalInstall: Plugin = {
  install(app: App) {
    Object.entries(components).forEach(([name, component]) => {
      app.component(name, component);
    });
  },
};
